package com.jonychen.swagger2demo.common.enums;

/**
 * @Description: 基础响应返回码
 * @Author: kui.chen@100credit.com
 * @Date: 2019/9/7 23:59
 */
public enum CodeEnum {

    SUCC("100000", "成功"),
    FAILURE("100001", "失败"),
    ERROR("100002", "内部错误"),
    PARAM_ERROR("100003", "参数错误"),
    NO_DATA_ERROR("100004", "未查询到相关数据");

    private final String code;
    private final String message;

    CodeEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }
}
